package com.scoy.honeymei.wxapi;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.scoy.honeymei.R;
import com.scoy.honeymei.base.BaseActivity;
import com.scoy.honeymei.utils.MyUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * ClassName:      com.scoy.honeymei.activity.mall
 * Description:
 * Author:         GaoZhan & Administrator
 * UpdateDate:     2019/11/20/0020$ 上午 10:40$
 * UpdateRemark:   更新内容
 */
public class PayResultActivity extends BaseActivity {

    @BindView(R.id.back_iv)
    ImageView backIv;
    @BindView(R.id.title_tv)
    TextView titleTv;
    @BindView(R.id.sign_tv)
    TextView signTv;
    @BindView(R.id.title_llt)
    LinearLayout titleLlt;
    @BindView(R.id.show_iv)
    ImageView showIv;
    @BindView(R.id.result_tv)
    TextView resultTv;
    @BindView(R.id.reback_tv)
    TextView rebackTv;
    private PayResultActivity mContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pay_result);
        ButterKnife.bind(this);
        mContext = PayResultActivity.this;
        initNormal();

    }

    @Override
    public void initNormal() {
        titleTv.setText("支付成功");
        resultTv.setText("支付成功!");


        MyUtil.setStatusBar(mContext, getWindow(), true, R.color.colorWhite);
        titleLlt.setPadding(0, MyUtil.getStatusBarHeight(mContext), 0, 0);

    }

    @OnClick({R.id.back_iv, R.id.reback_tv})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back_iv:
            case R.id.reback_tv:
                MyUtil.mytoast0(mContext, "支付成功", R.mipmap.ic_sure);
                setResult(0x87);
                finish();
                break;
        }
    }
}
